package sparrowGui.skin
{
	import flash.display.Sprite;
	
	public class CheckboxItemSkin extends RadioItemSkin
	{
		public function CheckboxItemSkin()
		{
			super();
		}
		
		override protected function drawShap(sp:Sprite, txy:int, r:int=7, borderColor:int=0x666666, bgColor:int=0xFFFFFF):void
		{
			sp.graphics.beginFill(bgColor);
			if(borderColor) sp.graphics.lineStyle(1,borderColor);
			else sp.graphics.lineStyle(1,bgColor);
			sp.graphics.drawRect(txy,txy,2*r,2*r);
			sp.graphics.endFill();
		}
	}
}